package com.firesafe.repair.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.firesafe.common.utils.PageUtils;
import com.firesafe.common.utils.Query;

import com.firesafe.repair.dao.RepairRecordDao;
import com.firesafe.repair.entity.RepairRecordEntity;
import com.firesafe.repair.service.RepairRecordService;


@Service("repairRecordService")
public class RepairRecordServiceImpl extends ServiceImpl<RepairRecordDao, RepairRecordEntity> implements RepairRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RepairRecordEntity> page = this.page(
                new Query<RepairRecordEntity>().getPage(params),
                new QueryWrapper<RepairRecordEntity>()
        );

        return new PageUtils(page);
    }

}